package ch04;public class People4 {
	int leg,hand;
	String name;
	People4(String s){
		name = s;
		this.init();		//this可以省略
	}
	void init(){
		leg = 2;
		hand = 2;
		System.out.println(name+"有"+hand+"只手"+leg+"条腿");
		
	}
	public static void main(String args[]){
		People4 boshi = new People4("布什");
	}
}
